import * as qs from "qs";
import * as Config from "@/config";
import { post } from "@/api/httpRequest";

const BASE_URI = Config.HTTP_SERVER + "/kgeditor";

/**
 * 撤回接口
 * @param data
 * @param success
 * @param error
 * @param final
 */
export function withdrawAPI (data,success,error,final){
  post(BASE_URI + "/cancel",qs.stringify(data),success,error,final);
}

/**
 * 多步撤回接口
 * @param data
 * @param success
 * @param error
 * @param final
 */
export function multiWithdrawAPI (data,success,error,final){
  post(BASE_URI + "/cancelMore",qs.stringify(data),success,error,final);
}
